package com.plm.maque.utils;

/**
 * @author Limi
 * @create 2018-11-27 17:05
 */
public class StringUtils {

    public static boolean isNotNull(Object object){
        if (object != null) {
            return true;
        } else if (object instanceof String && !"".equals(object)){
            return true;
        } else {
            return false;
        }
    }

    public static boolean isNull(Object object){
        if (object == null) {
            return true;
        } else if (object instanceof String && "".equals(object)){
            return true;
        } else {
            return false;
        }
    }

}
